package com.wd.command;

/**
 * 定义各种线程池的操作命令协议
 * 
 * @author long
 * @Create 2012-10-12 上午10:49:51
 * @QQ 108232706
 * @version 1.0
 * @description Protocol
 */
public final class Protocol {

	// 1~1000
	public static final short WaitCheckCmd = 1;// 等待检查，刚连接的时候
	public static final short OnCheckCmd = 2;// 等待玩家发用户名密码
	public static final short CheckSuccCmd = 3;// 通知登陆成功
	// 1000~2000用户操作
	public static final short UserLoginCmd = 1000;
	/**
	 * 登陆大厅服务器
	 */
	public static final short CmdLoginLobby = 1001;

	// 2000~3000房间操作
	public static final short RoomListCmd = 2000;
	public static final short RoomUserListCmd = 2001;
	public static final short RequestFriendListCmd = 2002;
	public static final short CloseGameTimeCmd = 2003;
	public static final short FastEnterRoomCmd = 2004;//快速进房
	//
	/**
	 * 使用物品
	 */
	public static final short CMD_USE_PROP = 3006;
	public static final short CMD_CHANGE_SEATICO = 3007;
	public static final short CMD_CHANGE_HEADIMAGE = 3008;
	
	public static final short CMD_REGISTER = 3997;
	public static final short LobbyCmd = 3998;
	public static final short GameRoomCmd = 3999;
	// 3000~4000游戏内操作
	public static final short EnterRoomCmd = 4000;
	public static final short RoomInfoCmd = 4001;
	public static final short SitdownCmd = 4002;
	public static final short InGAameRoomCmd = 4003;
	public static final short OutGameRoomCmd = 4004;
	public static final short StandUpCmd = 4005;
	public static final short StartGameCmd = 4006;
	public static final short CMD_GameMessageList = 4007;
	public static final short CMD_SETROOMINFO = 4008;
	public static final short CMD_PLAYERS = 4009;
	public static final short CMD_REQUESTINFOMATION = 4010;
	public static final short CMD_ROOMINFOUPDATE = 4011;
	public static final short CMD_ROOMPLAYERNUMCHANGE = 4012;
	public static final short CMD_OPERATION_NEXT = 4013;//下注,通知下一次操作人,,服务器主动推送
	public static final short CMD_OPERATION_REQUEST = 4014;
	public static final short CMD_OPERATION_SUCC = 4015;
	public static final short CMD_CUR_POT = 4016;//第%NUM%边池形成
	public static final short CMD_POTS = 4017;//%NAME% 赢得第%NUM%边池%VALUE%
	public static final short CMD_SNAPCARDS_FLOP = 4018;
	public static final short CMD_SNAPCARDS_TURN = 4019;
	public static final short CMD_SNAPCARDS_RIVER = 4020;
	public static final short CMD_SHOW = 4021;
	public static final short CMD_FACE = 4022;
	
	public static final short CMD_GAME_OVER = 5000;
	/**
	 * 游戏积宝增多,目标积宝，偏移量，完成时间
	 */
	public static final short CMD_UPDATE_CORNUCOPIA = 5001;
	/**
	 * 游戏过程出现中积宝，系统提示
	 */
	public static final short CMD_REWARD_CORNUCOPIA = 5002;
	/**
	 * 今日积宝
	 */
	public static final short CMD_TODAYCORNUCOPIALIST = 5003;
	/**
	 * 我的积宝
	 */
	public static final short CMD_MYCORNUCOPIALIST= 5004;

	//	public static final short RoomListCmd = 2000;
	// 8000~9000
	// 聊天室发消息
	public static final short CHATROOM_SEND_MESSAGE = 8000;
	public static final short CHATROOM_DELAY_MESSAGE = 8001;
	public static final short OperationNextCmd = 8002;//延时调度

	//测试命令
	public static final short TEST_AUTO_ADD = 10000;

	public static final short CMD_GAME_ROOM_SOCKET_CLOSE = 10003;
}
